package framework.types;

class TCoord<T> {

	public var left:T;
	public var top:T;
	public var width:T;
	public var height:T;

	public function new(l:T, t:T, w:T, h:T) {
		this.left = l;
		this.top = t;
		this.width = w;
		this.height = h;
	}

	public function right():Int{
		return left + width;
	}

	public function bottom():Int{
		return top + height;
	}

}

typedef FloatCoord = TCoord<Float>;
typedef IntCoord = TCoord<Int>;
